package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hyh
 * @version 1.0
 */
@Mapper
public interface DishFavorMapper {
    /**
     * 添加口味
     * @param flavors
     */
    void insert(List<DishFlavor> flavors);

    /**
     * 批量删除菜品口味
     * @param ids
     */
    void deleteFavor(List<Long> ids);

    /**
     * 根据id来查询菜品的口味
     * @param id
     * @return
     */
    List<DishFlavor> selectById(Integer id);

    /**
     * 更新口味信息
     * @param dishFlavor
     */
    void update(List<DishFlavor> dishFlavor);
}
